47ecd0d0f9bf47352b9674f50487732d13f9d6d7,java/org/apache/tomcat/util/http/RequestUtil.java,RequestUtil,normalize,#String#boolean#,54

Before Change


            return "/";
        }

        if (normalized.equals("/..")) {
            return null;  // Trying to go outside our context
        }

After Change


            normalized = "/" + normalized;

        boolean addedTrailingSlash = false;
        if (normalized.endsWith("/.") || normalized.endsWith("/..")) {
            normalized = normalized + "/";
            addedTrailingSlash = true;
        }